<template>
  <div>
    <van-tabbar v-model="active" v-show="$route.meta.footer">
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/PATH.FENLEI">分类</van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o" to="/PATH.GOUWUCHE">购物车</van-tabbar-item>
      <van-tabbar-item icon="manager-o" to="/PATH.USER">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang='scss'>
.van-tabbar--fixed {
  width: 100%;
  margin-top: 15vh;
}
</style>